
<!--[if IE 8 ]>
<style>

.fieldie8{
   height: 30px;line-height: 40px;
}
</style>
 <![endif]-->
<g:hiddenField name="id"/>

<g:hiddenField name="ter_zg"/>
<g:hiddenField name="ter_px"/>

<div class="fieldcontain devicefields">
    <label for="name">
        <g:message code="device.name.label" default="名称" />

    </label>
    <g:textField name="name" class="easyui-validatebox" required="true" />
</div>

<div class="fieldcontain devicefields">
	<label for="code">
		<g:message code="device.code.label" default="设备编码" />
		
	</label>
	<g:textField name="code" class="easyui-validatebox" required="true"/>
</div>

<div class="fieldcontain devicefields">
	<label for="area">
		<g:message code="device.area.label" default="片区" />
	</label>
    <g:hiddenField name="areaId" />
	<g:textField name="areaName" readonly="true" class="easyui-validatebox" required="true"/>
</div>
<div class="fieldcontain devicefields">
    <label for="logo">
        <g:message code="device.logo.label" default="设备标识" />

    </label>
    <g:textField name="logo" />
</div>
<div style="clear: both"></div>
%{--<div class="fieldcontain fieldie8">
    <label for="location.addr">
        <g:message code="device.location.addr.label" default="地理位置" />
    </label>
    <g:textField name="location.addr" class="inputtext" />

</div>--}%
<div class="fieldcontain ">
    <label for="location.installation">
        <g:message code="device.location.installation.label" default="安装位置" />
    </label>
    <g:textField name="location.installation" class="inputtext"/>
</div>

<div class="fieldcontain ">
    <label for="location">
        <g:message code="device.location.label" default="地理坐标" />
    </label>
    经度<g:textField name="location.longitude" style="width:50px;"/>
    /纬度<g:textField name="location.latitude" style="width:50px;"/>

</div>

<div class="fieldcontain devicefields">
    <label for="factory">
        <g:message code="device.factory.label" default="厂家" />
    </label>
    <g:textField name="factory" />
</div>

<div class="fieldcontain devicefields">
    <label for="model">
        <g:message code="device.model.label" default="型号" />
    </label>
    <g:textField name="model" />
</div>

<div class="fieldcontain devicefields">
    <label for="capacity.nominal">
        <g:message code="device.capacity.nominal.label" default="标称容量" />
    </label>
    <g:textField name="capacity.nominal" />
</div>

<div class="fieldcontain devicefields">
    <label for="capacity.actual">
        <g:message code="device.capacity.nominal.label" default="实际容量" />
    </label>
    <g:textField name="capacity.actual" readonly="true" />
</div>
<div style="clear: both"></div>


<div class="fieldcontain devicefields">
    <label for="mode">
        <g:message code="device.mode.label" default="安装方式" />
    </label>
    <g:select name="mode" from="${com.okaysoft.ofb.Device$Mode?.values()}" optionValue="label" />
</div>

<div class="fieldcontain devicefields">
    <label for="status">
        <g:message code="device.status.label" default="设备状态" />
    </label>
    <g:select name="status" from="${com.okaysoft.ofb.Device$Status?.values()}" optionValue="label" />
</div>
<div style="clear: both"></div>
<div class="fieldcontain ">
    <label for="description">
        <g:message code="device.description.label" default="备注" />

    </label>
    <g:textArea name="description" rows="3" cols="40"></g:textArea>
</div>

<div class="fieldcontain ">
    <label for="description">
        <g:message code="device.template.label" default="模板布局" />

    </label>
    <input id="cc" name="formwork.id" class="easyui-combotree" url="${createLink(controller: 'device',action: 'formworkTreeJson')}" style="width:200px;">
</div>
</div>
